package cn.ticket.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Staff {
    private Integer id;

    private String name;

    private Byte sex;
    
    private String number;

    private String phone;

    private Integer departmentid;

    private String password;

    private Date lastlogindate;

    private String lastloginip;

    private String status;

    private Boolean iseabled=true;

    private Byte level=1;

    private Date regdate;

    private String other;

    private Integer owncount;

    private Integer relativecount;

    private Integer workticketcount;

    private Integer refundcount;

    private Date lastrefunddate;

    private Boolean ischecked;

    private Boolean isneedcheck;
    
    private String appinfo;



	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }
    
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number == null ? null : number.trim();
    }
    
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(Integer departmentid) {
        this.departmentid = departmentid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getLastlogindate() {
        return lastlogindate;
    }

    public void setLastlogindate(String lastlogindate) throws ParseException {
        this.lastlogindate = new SimpleDateFormat(Constants.DATEFORMAT).parse(lastlogindate);
    }
    
    public void setLastlogindate11(Date lastlogindate){
        this.lastlogindate =lastlogindate;
    }
    public String getLastloginip() {
        return lastloginip;
    }

    public void setLastloginip(String lastloginip) {
        this.lastloginip = lastloginip == null ? null : lastloginip.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Boolean getIseabled() {
        return iseabled;
    }

    public void setIseabled(Boolean iseabled) {
        this.iseabled = iseabled;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other == null ? null : other.trim();
    }

    public Integer getOwncount() {
        return owncount;
    }

    public void setOwncount(Integer owncount) {
        this.owncount = owncount;
    }

    public Integer getRelativecount() {
        return relativecount;
    }

    public void setRelativecount(Integer relativecount) {
        this.relativecount = relativecount;
    }

    public Integer getWorkticketcount() {
        return workticketcount;
    }

    public void setWorkticketcount(Integer workticketcount) {
        this.workticketcount = workticketcount;
    }

    public Integer getRefundcount() {
        return refundcount;
    }

    public void setRefundcount(Integer refundcount) {
        this.refundcount = refundcount;
    }

    public Date getLastrefunddate() {
        return lastrefunddate;
    }

    public void setLastrefunddate(Date lastrefunddate) {
        this.lastrefunddate = lastrefunddate;
    }

    public Boolean getIschecked() {
        return ischecked;
    }

    public void setIschecked(Boolean ischecked) {
        this.ischecked = ischecked;
    }

    public Boolean getIsneedcheck() {
        return isneedcheck;
    }

    public void setIsneedcheck(Boolean isneedcheck) {
        this.isneedcheck = isneedcheck;
    }
    public String getAppinfo() {
		return appinfo;
	}

	public void setAppinfo(String appinfo) {
		this.appinfo = appinfo;
	}
}